#ifndef LINE_SEGMENT_H
#define LINE_SEGMENT_H

// includes
#include "Vector.h"

class LineSegment
{
	public:
		// ctor
		LineSegment(float fromX, float fromY, float toX, float toY);
		LineSegment(const Vector2D *from, const Vector2D *to);

		//getters
		Vector2D GetFromPoint() const;
		Vector2D GetToPoint() const;
		Vector2D GetNormal() const;
		// BONUS
		bool IntersectsWith(const LineSegment *seg);

	private:
		Vector2D m_from;
		Vector2D m_to;
		Vector2D m_normal;
};

#endif